// 负责品牌的接口
import request from '@/utils/request'
// 获取分页信息列表
export const reqTradeMarkList = (page,limit)=>request({url:`/admin/product/baseTrademark/${page}/${limit}`,method:'get'})

// 新增以及更新产品接口
export const reqAddOrUpdateTradeMark = (trademark)=>{
    // 修改
    if(trademark.id){
        return request({url:'/admin/product/baseTrademark/update',data:trademark,method:'put'})
    }else {
        // 新增
        return request({url:'/admin/product/baseTrademark/save',data:trademark,method:'post'})
    }
}

// 删除商品
export const deleteTradeMark = (id)=>request({url:`/admin/product/baseTrademark/remove/${id}`,method:'delete'})
